
#ifndef _LoiterBehaviour_H_
#define _LoiterBehaviour_H_

#include "PathFindBehaviour.h"
#include "../Ship.h"
#include "../Utils/Vector2D.h"


class LoiterBehaviour {
  public:
    LoiterBehaviour(Ship *my_ship, Vector2D loiter_point, float max_dist);
    ~LoiterBehaviour();

    bool shouldILoiter(void);
    bool perform(void);

  private:
    Ship *my_ship;
    unsigned my_team_id;

    Vector2D loiter_point;
    float max_dist;
    PathFindBehaviour *path_find;


    Vector2D generateDestination(void);
    void clear(void);
};


#endif

